<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Micromenu: src/Video.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javaScript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Gerado por Doxygen 1.6.3 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Localizar');
--></script>
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Página&nbsp;principal</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Ficheiros</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <img id="MSearchSelect" src="search/search.png"
             onmouseover="return searchBox.OnSearchSelectShow()"
             onmouseout="return searchBox.OnSearchSelectHide()"
             alt=""/>
        <input type="text" id="MSearchField" value="Localizar" accesskey="S"
             onfocus="searchBox.OnSearchFieldFocus(true)" 
             onblur="searchBox.OnSearchFieldFocus(false)" 
             onkeyup="searchBox.OnSearchFieldChange(event)"/>
        <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
        </div>
      </li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>Lista&nbsp;de&nbsp;ficheiros</span></a></li>
    </ul>
  </div>
<h1>src/Video.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#include &lt;SDL/SDL.h&gt;</span>
<a name="l00002"></a>00002 
<a name="l00003"></a>00003 <span class="preprocessor">#ifndef _VIDEO_H_</span>
<a name="l00004"></a>00004 <span class="preprocessor"></span><span class="preprocessor">#define _VIDEO_H_</span>
<a name="l00005"></a>00005 <span class="preprocessor"></span>
<a name="l00017"></a><a class="code" href="class_video.html">00017</a> <span class="keyword">class </span><a class="code" href="class_video.html" title="Classe de sistema de vídeo.">Video</a>
<a name="l00018"></a>00018 {
<a name="l00019"></a>00019     <span class="keyword">private</span>:
<a name="l00021"></a>00021         SDL_Surface* mpTelaAtiva;
<a name="l00023"></a>00023         Uint16 mAltura;
<a name="l00025"></a>00025         Uint16 mLargura;
<a name="l00027"></a>00027         Uint8 mProfund;
<a name="l00029"></a>00029         Uint32 mVideoFlags;
<a name="l00031"></a>00031         SDL_bool mbTelaCheia;
<a name="l00033"></a>00033         <span class="keyword">static</span> SDL_bool sbInstanciada;
<a name="l00034"></a>00034 
<a name="l00035"></a>00035 
<a name="l00036"></a>00036     <span class="keyword">public</span>:
<a name="l00038"></a>00038         <a class="code" href="class_video.html#ab67336c2c5b6227a9635bc7dcd6af543" title="Construtor padrão.">Video</a>();
<a name="l00045"></a>00045         SDL_bool <a class="code" href="class_video.html#a52a8ad9e0702cd2d30a27dbb31701135" title="Inicializa o sistema de vídeo.">inicializa</a>(Uint16 largura = 320, Uint16 altura = 240, SDL_bool telaCheia = SDL_FALSE,
<a name="l00046"></a>00046                         Uint8 bpp = 16);
<a name="l00049"></a>00049         SDL_Surface* <a class="code" href="class_video.html#a06694cc93895aeeda732cc6de50a04c6" title="Retorna ponteiro para a superfície ativa.">retornaTela</a>();
<a name="l00052"></a><a class="code" href="class_video.html#a5c7b3bf247c843298bba93b70dc5954e">00052</a>         Uint16 <a class="code" href="class_video.html#a5c7b3bf247c843298bba93b70dc5954e" title="Retorna a largura da janela.">retornaLargura</a>(){ <span class="keywordflow">return</span> mLargura;}
<a name="l00055"></a><a class="code" href="class_video.html#a64efb0df91861a1e0bf41fc868b7d60b">00055</a>         Uint16 <a class="code" href="class_video.html#a64efb0df91861a1e0bf41fc868b7d60b" title="Retorna a altura da janela.">retornaAltura</a>(){ <span class="keywordflow">return</span> mAltura;}
<a name="l00057"></a>00057         <a class="code" href="class_video.html#aebf7e2a8fa2bbd79335b1cf35925d190" title="Destrutor padrão.">~Video</a>();
<a name="l00058"></a>00058 };
<a name="l00059"></a>00059 
<a name="l00060"></a>00060 
<a name="l00061"></a>00061 
<a name="l00062"></a>00062 <span class="preprocessor">#endif</span>
</pre></div></div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&nbsp;</span>Tudo</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&nbsp;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&nbsp;</span>Funções</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&nbsp;</span>Variáveis</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr class="footer"/><address style="text-align: right;"><small>Gerado em Tue Jul 6 15:36:09 2010 para Micromenu por&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address>
</body>
</html>
